Less colour is more colour
Handy tip, have less output in colour:
jq -C '.' | less -R
- less uses the -R switch, allowing "raw" control characters
- jq uses the -C switch, forcing colouring even though it is piping
git -c color.status=always status | less -R
- git uses the
-c
parameter before a temporary configuration change. The arguments passed here could be put into the.gitconfig
file
Many programs suppress colourised output if they detect they are being redirected, if you are using the -R
switch with less and the output isn't colourful then you need to enable switches earlier on in the pipe.